﻿using System;

namespace WyUnity.Data.DataAccess
{
    public enum EmLoadDataResult
    {
        Success = 0,
        RecordNoExists,

        SystemError=9999
    }
    public enum EmDAException
    {
        None=0,
        RecordNoExists,
		UpdateConflict,
        SystemError = 9999
    }
	public class DAException:Exception
	{
		public DAException(string msg) : base(msg) { }
		public DAException(string msg, Exception innerEx) : base(msg, innerEx) { }

        public DAException(EmDAException type, string msg) : base(msg) { ExceptionType = type; }
        public DAException(EmDAException type, string msg, Exception innerEx) : base(msg, innerEx) { ExceptionType = type; }

        public EmDAException ExceptionType { get; private set; }
	}
}
